<?php
$this->widget('ext.pagetitle.PageTitle');
?>

<div class="site-index">

	<div class="clearfix">
		<div class="welcome float-left">
			<h1><?php echo Yii::t('frontend','Welcome!'); ?></h1>
			<p class="intro">
				<?php echo Yii::t('frontend','Kuvakilpailut.net is a service where you can vote and comment on entries submitted by other users. You can also participate in a contest by submitting an entry yourself. You do not need to log in or register, instead all functionality is at your disposal when you have connected to Facebook. This way we assure that users cannot submit more than one entry for each contest and that they cannot vote on entries multiple times.'); ?>
			</p>
		</div>
		<div class="like-box float-right">
			<fb:like-box href="http://www.facebook.com/pages/Kuvakilpailutnet/150275678394683" width="292" show_faces="false" border_color="#ccc" stream="false" header="false"></fb:like-box>
		</div>
	</div>

	<?php if ($contest !== null): ?>

		<div class="well bottom">
			<?php echo $this->renderPartial('/contest/_view', array(
				'model'=>$contest,
				'entries'=>$entries,
			)); ?>
		</div>

	<?php else: ?>

		<p><?php echo Yii::t('frontend','No contests to display.'); ?></p>

	<?php endif; ?>

</div>